package com.skyolder.taskman;

import java.util.ArrayList;
import java.util.HashMap;

import com.skyolder.taskman.ast.RunError;
import com.skyolder.taskman.ast.Tree;

public class Container {
	HashMap<String, Object> map=new HashMap<String,Object>();
	HashMap<String, Object> vars=new HashMap<String,Object>();
	Object result=null;
	public void putCallBack(String key ,Object r){
		map.put(key, r);
	}
	public Object getCallBack(String key){
		return map.get(key);
	}
	public void putVar(String key ,Object r){
		vars.put(key, r);
	}
	public Object getVar(String key){
		return vars.get(key);
	}
	public void run(Tree t) throws RunError {
		result=t.excute();
	}
	public Object getResult(){
		return null;
	}
	public static void main(String[] args){
		
	}
}
